Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

Q is empty.


QTRS
  ↳ Overlay + Local Confluence

Q restricted rewrite system:
The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

Q is empty.

The TRS is overlay and locally confluent. By [15] we can switch to innermost.

↳ QTRS
  ↳ Overlay + Local Confluence
QTRS
      ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))


Using Dependency Pairs [1,13] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

GCD(s(x), s(y)) → GCD(-(max(x, y), min(x, y)), s(min(x, y)))
MIN(s(x), s(y)) → MIN(x, y)
GCD(s(x), s(y)) → -1(max(x, y), min(x, y))
-1(s(x), s(y)) → -1(x, y)
GCD(s(x), s(y)) → MAX(x, y)
GCD(s(x), s(y)) → MIN(x, y)
MAX(s(x), s(y)) → MAX(x, y)

The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
QDP
          ↳ EdgeDeletionProof

Q DP problem:
The TRS P consists of the following rules:

GCD(s(x), s(y)) → GCD(-(max(x, y), min(x, y)), s(min(x, y)))
MIN(s(x), s(y)) → MIN(x, y)
GCD(s(x), s(y)) → -1(max(x, y), min(x, y))
-1(s(x), s(y)) → -1(x, y)
GCD(s(x), s(y)) → MAX(x, y)
GCD(s(x), s(y)) → MIN(x, y)
MAX(s(x), s(y)) → MAX(x, y)

The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.
We deleted some edges using various graph approximations

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
QDP
              ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

GCD(s(x), s(y)) → GCD(-(max(x, y), min(x, y)), s(min(x, y)))
MIN(s(x), s(y)) → MIN(x, y)
-1(s(x), s(y)) → -1(x, y)
GCD(s(x), s(y)) → -1(max(x, y), min(x, y))
GCD(s(x), s(y)) → MAX(x, y)
GCD(s(x), s(y)) → MIN(x, y)
MAX(s(x), s(y)) → MAX(x, y)

The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 4 SCCs with 3 less nodes.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
QDP
                    ↳ QDPOrderProof
                  ↳ QDP
                  ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

-1(s(x), s(y)) → -1(x, y)

The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


-1(s(x), s(y)) → -1(x, y)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Combined order from the following AFS and order.
-1(x1, x2)  =  -1(x1)
s(x1)  =  s(x1)

Recursive path order with status [2].
Precedence:
s1 > -^11

Status:
-^11: multiset
s1: multiset

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ PisEmptyProof
                  ↳ QDP
                  ↳ QDP
                  ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
QDP
                    ↳ QDPOrderProof
                  ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MAX(s(x), s(y)) → MAX(x, y)

The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


MAX(s(x), s(y)) → MAX(x, y)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Combined order from the following AFS and order.
MAX(x1, x2)  =  MAX(x1)
s(x1)  =  s(x1)

Recursive path order with status [2].
Precedence:
s1 > MAX1

Status:
s1: multiset
MAX1: multiset

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ PisEmptyProof
                  ↳ QDP
                  ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                  ↳ QDP
QDP
                    ↳ QDPOrderProof
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MIN(s(x), s(y)) → MIN(x, y)

The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be oriented strictly and are deleted.


MIN(s(x), s(y)) → MIN(x, y)
The remaining pairs can at least be oriented weakly.
none
Used ordering: Combined order from the following AFS and order.
MIN(x1, x2)  =  MIN(x1)
s(x1)  =  s(x1)

Recursive path order with status [2].
Precedence:
s1 > MIN1

Status:
MIN1: multiset
s1: multiset

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                  ↳ QDP
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ PisEmptyProof
                  ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ Overlay + Local Confluence
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ EdgeDeletionProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                  ↳ QDP
                  ↳ QDP
QDP

Q DP problem:
The TRS P consists of the following rules:

GCD(s(x), s(y)) → GCD(-(max(x, y), min(x, y)), s(min(x, y)))

The TRS R consists of the following rules:

min(x, 0) → 0
min(0, y) → 0
min(s(x), s(y)) → s(min(x, y))
max(x, 0) → x
max(0, y) → y
max(s(x), s(y)) → s(max(x, y))
-(x, 0) → x
-(s(x), s(y)) → -(x, y)
gcd(s(x), 0) → s(x)
gcd(0, s(x)) → s(x)
gcd(s(x), s(y)) → gcd(-(max(x, y), min(x, y)), s(min(x, y)))

The set Q consists of the following terms:

min(x0, 0)
min(0, x0)
min(s(x0), s(x1))
max(x0, 0)
max(0, x0)
max(s(x0), s(x1))
-(x0, 0)
-(s(x0), s(x1))
gcd(s(x0), 0)
gcd(0, s(x0))
gcd(s(x0), s(x1))

We have to consider all minimal (P,Q,R)-chains.